package cyc.learn.mode.command;

/**
 * 口令传递者————店小二
 */
public class OrderCommand implements Command{

    private CookReceiver receiver;

    public OrderCommand(CookReceiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.cooking();
    }

    @Override
    public void undo() {
        receiver.unCooking();
    }
}
